﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WqLunTan.Models.DataBase
{
    /// <summary>
    /// 在网站后台回复的微信消息
    /// </summary>
    [Table("wechat_reply")]
    public class wechat_reply : BaseUpdateEntity
    {

        /// <summary>
        /// 发送消息的当前登录用户id
        /// </summary>
        public Guid uid { get; set; }

        /// <summary>
        /// 回复的用户id
        /// </summary>
        [MaxLength(50)]
        [Required(AllowEmptyStrings = true)]
        public string openid { get; set; } = string.Empty;

        /// <summary>
        /// 回复最后一条消息的ID
        /// </summary>
        public long MsgID { get; set; }

        /// <summary>
        /// 回复的内容
        /// </summary>
        [MaxLength(1024)]
        [Required(AllowEmptyStrings = true)]
        public string content { get; set; } = string.Empty;

        /// <summary>
        /// 是否发送完成
        /// </summary>
        public bool is_send { get; set; }
    }
}
